package com.hotel.homehotel.before.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hotel.homehotel.before.entiy.Room;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Date;

@Mapper
public interface RoomMapper extends BaseMapper<Room> {
//    @Insert("INSERT INTO room ( room_id, room_name, room_category, room_price, room_discount, room_introduce, room_picture, room_address, created_time, updated_time ) VALUES ( #{room_id}, #{room_name}, #{room_category}, #{room_price}, #{room_discount}, #{room_introduce}, #{room_picture}, #{room_address}, #{created_time}, #{updated_time} )")
//   @Select(" SELECT LAST_INSERT_ID ")
//    String seleteKey(String name, String category, Integer price, Double discount, String introduce, Integer price1, String address, Date createdTime, Date updatedTime);

}
